/**
 * <copyright>
 * </copyright>
 *
 * 
 */
package de.claaswilke.presents.resource.presents.grammar;

/**
 * A class to represent a rules in the grammar.
 */
public class PresentsRule extends de.claaswilke.presents.resource.presents.grammar.PresentsSyntaxElement {
	
	private final org.eclipse.emf.ecore.EClass metaclass;
	
	public PresentsRule(org.eclipse.emf.ecore.EClass metaclass, de.claaswilke.presents.resource.presents.grammar.PresentsChoice choice, de.claaswilke.presents.resource.presents.grammar.PresentsCardinality cardinality) {
		super(cardinality, new de.claaswilke.presents.resource.presents.grammar.PresentsSyntaxElement[] {choice});
		this.metaclass = metaclass;
	}
	
	public org.eclipse.emf.ecore.EClass getMetaclass() {
		return metaclass;
	}
	
	public de.claaswilke.presents.resource.presents.grammar.PresentsChoice getDefinition() {
		return (de.claaswilke.presents.resource.presents.grammar.PresentsChoice) getChildren()[0];
	}
	
}

